package com.gscitysfy.cus.drain.modules.resource.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gscitysfy.cloudfrmwk.assistant.domain.Result;
import com.gscitysfy.cus.drain.modules.resource.dto.DrainBaseMnWarehouseDto;
import com.gscitysfy.cus.drain.modules.resource.dto.ResourceCarDto;
import com.gscitysfy.cus.drain.modules.resource.dto.MnWarehouseRequest;
import com.gscitysfy.cus.drain.modules.resource.entity.DrainBaseMnWarehouse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cus.drain.modules.warning.entity.DrainSignal;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 物资仓库表 服务类
 * </p>
 *
 * @author user
 * @since 2022-10-24 16:57:08
 */
public interface IDrainBaseMnWarehouseService extends IService<DrainBaseMnWarehouse> {
    Result<Object> getByPage(Page<DrainBaseMnWarehouse> page, DrainBaseMnWarehouse drainBaseMnWarehouse);

    /**
     * id集合查询
     *
     * @param idList
     * @return
     */
    List<DrainBaseMnWarehouseDto> fetchInIdList(List<Long> idList);

    /*Boolean saveDrainBaseMnWarehouse(DrainBaseMnWarehouse drainBaseMnWarehouse);*/
    List<DrainBaseMnWarehouseDto> list(Long dangerSituationId);
    Result delete(Long id);

    Result<Object> getByPages(Page<DrainBaseMnWarehouse> page, MnWarehouseRequest request);

    void export(String goodsName, List<String> ids, HttpServletResponse response);
}
